﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RegisterPostJobs.aspx.cs" Inherits="lcmyjobs.Web.enprise.RegisterPostJobs" %>

<%@ Register src="../Controls/Bottom.ascx" tagname="Bottom" tagprefix="uc1" %>
<%@ Register src="../Controls/Bottom1.ascx" tagname="Bottom1" tagprefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
  <title>单位会员注册：发布职位</title>
    <link href="../css/h_edu.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <script src="../Scripts/drag.js" type="text/javascript"></script>
    <script src="../Scripts/city_func.js" type="text/javascript"></script>
    <script src="../Scripts/city_arr.js" type="text/javascript"></script>
    <link href="../Styles/css.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/industry_arr.js" type="text/javascript"></script>
    <script src="../Scripts/industry_func.js" type="text/javascript"></script>
    <script src="../Scripts/funtype_arr.js" type="text/javascript"></script>
    <script src="../Scripts/funtype_func.js" type="text/javascript"></script>
    <script src="../Scripts/major_arr.js" type="text/javascript"></script>
    <script src="../Scripts/major_func.js" type="text/javascript"></script>
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../Scripts/mybasic.js" type="text/javascript"></script>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            height: 29px;
            width:470px;
           color:#575c5f;
            text-align: left;
        }
        .style3
        {
            width: 152px;
        }
        .style4
        {
            height: 29px;
            }
        .style7
        {
        	 color:#575c5f;
        }
        .style8
        {
            height: 29px;
            text-align: center;
        }
        .style9
        {
        	font-size:12px;
            color: #ff6600;
        }
        .style10
        {
            font-size: large;
        }
        .style11
        {
            font-size: 12px;
            color: #ff6600;
        }
        .style12
        {
            height: 22px;
        }
        .style13
        {
            color: #575c5f;
            width: 335px;
        }
        .style14
        {
            color: #ff6600;
        }
        .style15
        {
            color: #000000;
        }
        .nonebg { border:none; background-image:none;}
        
        
        .auto-style1 {
            height: 29px;
            width: 121px;
        }
        
        
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="wrapper">
        <div class="top">
            <div class="logo">
            </div>
            <div class="geri">
                单位招聘注册</div>
            <div class="site_title">
                <div class="site_title1">
                </div>
                <div class="site_title2">
                    <ul>
                        <li >单位信息&bull;联系方式</li>
                        <li>&nbsp; &rarr; &nbsp;</li>
                        <li>单位介绍</li>
                        <li>&nbsp; &rarr; &nbsp;</li>
                        <li class="curbar">发布职位（可多个）</li>
                        <li>&nbsp; &rarr; &nbsp;</li>
                        <li>管理中心（找人才）</li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="geet">
            <div align="center">
                <span>&nbsp;&nbsp;<strong class="style10">欢迎注册单位会员!</strong></span>
            </div>
            <div style=" height:16px;"></div>
            <p align="center">
                <em>温馨提示：一次只能发布一个职位，多个职位请继续发布！</em></p>
                <div style=" height:25px;"></div>
        </div>
        <div class="middle">
            <div class="main_data">
                <!--one-->
                <div class="main_data_title">
                    <h3>发布职位（可多个）</h3>
                </div>
                <div class="main_data_list">
                   <table class="style1">
                    <tr>
                        <td colspan="3" style="text-align: left" class="style12">
                            </td>
                    </tr>
                    <tr>
                        <td style="text-align: right" class="auto-style1">
                            <span class="style9">* </span>&nbsp;招聘职位：
                        </td>
                        <td class="style13">
                            <asp:TextBox ID="txtjob" runat="server"  CssClass="inputText3"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="txtjob" ErrorMessage="招聘职位不能为空！"></asp:RequiredFieldValidator>
                        </td>
                        <td class="style2">
                            &nbsp;
                        </td>
                    </tr>

                     <tr>
                        <td style="text-align: right" class="auto-style1">
                             <span class="style9">* </span>&nbsp;职位期限：
                        </td>
                        <td class="style13">
                            <asp:TextBox ID="txtvalidity" runat="server" CssClass="inputText3"></asp:TextBox>&nbsp;天
                             <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                                ControlToValidate="txtvalidity" ErrorMessage="职位期限不能为空！" 
                                Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                ControlToValidate="txtvalidity" Display="Dynamic" ErrorMessage="请输入数字" 
                                ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                            <asp:RangeValidator ID="RangeValidator1" runat="server" 
                                ErrorMessage="1-365之间" ControlToValidate="txtvalidity" Display="Dynamic" 
                                MaximumValue="365" MinimumValue="1" Type="Integer">1-365之间</asp:RangeValidator>
                        </td>
                        <td class="style2">
                            <span class="style11">请慎重填写！</span>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right" class="auto-style1">
                             <span class="style9">* </span>&nbsp;职位类别：
                        </td>
                        <td class="style13">
                            <asp:TextBox ID="txtjobclass" runat="server" CssClass="inputText3" onclick="funtypeSelect_2()"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="txtjobclass" ErrorMessage="职位类别不能为空！"></asp:RequiredFieldValidator>
                        </td>
                        <td class="style2">
                            <span class="style11" >重要！</span>正确的职位类别，能使更多的求职者准确的搜索到您的职位。
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right" class="auto-style1">
                             <span class="style9">* </span>&nbsp;工作地区：
                        </td>
                        <td class="style13">
                            <asp:TextBox ID="txtarea" runat="server" CssClass="inputText3" onclick="jobAreaSelect()"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                ControlToValidate="txtarea" ErrorMessage="工作地区不能为空！"></asp:RequiredFieldValidator>
                        </td>
                        <td class="style2">
                           
                            最多允许选择3个工作地区</td>
                    </tr>
                    <tr>
                        <td style="text-align: right" class="auto-style1">
                             <span class="style9">* </span>&nbsp;招聘人数：
                        </td>
                        <td class="style13">
                            <asp:TextBox ID="txtworkercount" CssClass="inputText3" runat="server" Width="60px"></asp:TextBox>&nbsp;&nbsp;<span 
                                class="style15">人 </span>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                ControlToValidate="txtworkercount" ErrorMessage="招聘人数不能为空！"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                ControlToValidate="txtworkercount" Display="Dynamic" ErrorMessage="请输入数字" 
                                ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                        </td>
                        <td class="style2">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right" class="auto-style1">
                             <span class="style9">* </span>&nbsp;招聘部门：
                        </td>
                        <td class="style13">
                            <asp:TextBox ID="txtjobdep" CssClass="inputText3" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                ControlToValidate="txtjobdep" ErrorMessage="招聘部门不能为空！"></asp:RequiredFieldValidator>
                        </td>
                        <td class="style2">
                            人才上班后的所在部门；可填写“单位”</td>
                    </tr>
                    <tr>
                        <td colspan="3" style="padding-left:60px;" class="style4">
                           <asp:CheckBox ID="cbo_isnx" runat="server" Text=""  Visible="false" Checked="true"/><span class="style9">* </span> 年薪 ：<asp:TextBox ID="txtYmin" runat="server" Width="20px"></asp:TextBox>
－ 
                                <asp:TextBox ID="txtYmax" runat="server" Width="20px"></asp:TextBox>
                                万元
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="txtYmin" Display="Dynamic" ErrorMessage="RequiredFieldValidator">最低年薪不能为空</asp:RequiredFieldValidator>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="txtYmax" Display="Dynamic" ErrorMessage="RequiredFieldValidator">最高年薪不能为空</asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtYmin" Display="Dynamic" ErrorMessage="CompareValidator" Operator="DataTypeCheck" Type="Integer">最低年薪只能是整数</asp:CompareValidator>
                                <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="txtYmax" Display="Dynamic" ErrorMessage="CompareValidator" Operator="DataTypeCheck" Type="Integer">最高年薪只能是整数</asp:CompareValidator>
                                <asp:CompareValidator ID="CompareValidator3" runat="server" ControlToCompare="txtYmin" ControlToValidate="txtYmax" Display="Dynamic" ErrorMessage="CompareValidator" Operator="GreaterThanEqual" Type="Integer">最高年薪要大于等于最低年薪</asp:CompareValidator>
                                <asp:CompareValidator ID="CompareValidator4" runat="server" ControlToValidate="txtYmin" Display="Dynamic" ErrorMessage="CompareValidator" Operator="GreaterThan" Type="Integer" ValueToCompare="0">最低年薪要大于0</asp:CompareValidator>
								
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right" class="auto-style1">
                            <asp:CheckBox ID="cbo_isfrist" runat="server" Text="急聘" Enabled="False" 
                                Visible="False"  onclick="setfristvalidity();"/>
                            <asp:CheckBox ID="cbo_isreward" runat="server" Text=" &nbsp;悬赏招聘：" ForeColor="#252525" CssClass="nonebg"  onclick="showreward()"/>
                        </td>
                        <td class="style13">
                            
                            <span class="style15 txtrewardpay">悬赏金额&nbsp;<asp:TextBox ID="txtrewardpay" runat="server" CssClass="inputText3" Width="50px"></asp:TextBox>
                            &nbsp;&nbsp;元</span> <asp:CompareValidator ID="CompareValidator5" runat="server" ErrorMessage="CompareValidator" ControlToValidate="txtrewardpay" Operator="GreaterThanEqual" Type="Integer" ValueToCompare="500">不能小于500元</asp:CompareValidator>
                        </td>
                        <td class="style2">
                            <!--
                            <input type="button" onclick="alert_reward_jobs_content()" value="为什么要悬赏招聘？" onmouseover="this.style.cursor='hand'" style=" border:none; background-image:none; color:#ff6600; font-weight:bold; width:140px;"/>
                            -->
                            <div>
                            <x:PageManager ID="PageManager1" runat="server" />
                                        <x:LinkButton ID="btnWhy" Text="为什么要悬赏招聘？" runat="server"  CssClass="inline"  ToolTip="悬赏招聘：更准确、更快捷、更低成本。<br/><br/>更准确----提供专业的人才选择工具，帮助企业深度甄选人才。 基于人才胜任素质的评测工具辅助人才选择。颠覆被动“等待”人才的传统方式。<br/><br/>更快捷----发挥社会力量，动员群众，借助猎手人脉资源关系，让您的悬赏信息迅速覆盖目标群体，快速找到适合人才。<br/><br/>更低成本----悬赏招聘使企业能够以较低的价格完成猎头服务。悬赏企业自行定价、发布有效职位，成本仅为传统猎头费用(费用为该职位年薪的30%)的十分之一，甚至更低，并全程享受专业人事招聘服务，轻松猎才。" ToolTipAutoHide="false">
                                        </x:LinkButton>
                            </div>
                            <asp:HiddenField ID="hid_jobclass" runat="server" />
                        </td>
                    </tr>

                   

                    <tr style="display:none" >
                        <td style="text-align: right" class="auto-style1">
                             <span class="style9">* </span>&nbsp;人才类别：
                        </td>
                        <td class="style13">
                            <asp:RadioButton ID="rdo_bx" runat="server" Text="&nbsp; 不限" GroupName="class" ForeColor="#252525" />
                            <asp:RadioButton ID="rdo_yjs" runat="server" Text="&nbsp; 应届生" GroupName="class" ForeColor="#252525" />
                            <asp:RadioButton ID="rdo_wjs" runat="server" Text="&nbsp; 往届生" GroupName="class" ForeColor="#252525"  Checked="True" />
                        </td>
                        <td class="style2">
                            <span class="style11">重要！</span>正确的人才类别，能使更多求职者准确搜索到您的职位</td>
                    </tr>
                    <tr>
                        <td style="text-align: right" class="auto-style1">
                             <span class="style9">* </span>&nbsp;最低学历：
                        </td>
                        <td class="style13">
                            <asp:DropDownList ID="ddledus_id" runat="server" CssClass="inputText3" Width="182">
                                <asp:ListItem Value="1">不限</asp:ListItem>
                                <asp:ListItem Value="2">初中</asp:ListItem>
                                <asp:ListItem Value="3">高中</asp:ListItem>
                                <asp:ListItem Value="4">中专/中技</asp:ListItem>
                                <asp:ListItem Value="5">大专</asp:ListItem>
                                <asp:ListItem Value="6">本科</asp:ListItem>
                                <asp:ListItem Value="7">硕士</asp:ListItem>
                                <asp:ListItem Value="8">博士</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="style2">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right" class="auto-style1">
                             <span class="style9">* </span>&nbsp;工作经验：
                        </td>
                        <td class="style13">
                            <asp:DropDownList ID="ddlworkxp_id" runat="server" CssClass="inputText3" Width="182">
                               <asp:ListItem Value="1">不限</asp:ListItem>
                                <asp:ListItem Value="2">应届生</asp:ListItem>
                                <asp:ListItem Value="3">3年以下</asp:ListItem>
                                <asp:ListItem Value="4">3年以上</asp:ListItem>
                                <asp:ListItem Value="5">5年以上</asp:ListItem>
                                <asp:ListItem Value="6">10年以上</asp:ListItem>
                                <asp:ListItem Value="7">15年以上</asp:ListItem>
                                <asp:ListItem Value="8">20年以上</asp:ListItem>
                                <asp:ListItem Value="9">25年以上</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="style2">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right" class="auto-style1">
                             <span class="style9">* </span>&nbsp;专业要求：
                        </td>
                        <td class="style13">
                            <asp:TextBox ID="txtmajor" runat="server" onclick="majorSelect(3)" CssClass="inputText3"></asp:TextBox>
                            &nbsp;<asp:CheckBox ID="cbo_bx" runat="server" Text="&nbsp; 不限" ForeColor="#252525"
                                onclick="readonly()" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                                ControlToValidate="txtmajor" ErrorMessage="不能为空！"></asp:RequiredFieldValidator>
                        </td>
                        <td class="style2">
                            最多允选择3个专业</td>
                    </tr>
                    <tr>
                        <td style="text-align: right" class="auto-style1">
                             <span class="style9">* </span>&nbsp;外语要求：
                        </td>
                        <td class="style13">
                            <asp:DropDownList ID="ddllanguage" runat="server" CssClass="inputText3" Width="182">
                                <asp:ListItem Value="1">不限</asp:ListItem>
                                <asp:ListItem Value="2">英语</asp:ListItem>
                                <asp:ListItem Value="3">日语</asp:ListItem>
                                <asp:ListItem Value="4">法语</asp:ListItem>
                                <asp:ListItem Value="5">德语</asp:ListItem>
                                <asp:ListItem Value="6">阿拉伯语</asp:ListItem>
                                <asp:ListItem Value="7">西班牙语</asp:ListItem>
                                <asp:ListItem Value="8">俄语</asp:ListItem>
                                <asp:ListItem Value="9">韩语</asp:ListItem>
                                <asp:ListItem Value="10">葡萄牙语</asp:ListItem>
                                <asp:ListItem Value="11">意大利语</asp:ListItem>
                                <asp:ListItem Value="12">波斯语</asp:ListItem>
                                <asp:ListItem Value="13">土耳其语</asp:ListItem>
                                <asp:ListItem Value="14">希腊语</asp:ListItem>
                                <asp:ListItem Value="15">瑞典语</asp:ListItem>
                                <asp:ListItem Value="16">印地语</asp:ListItem>
                                <asp:ListItem Value="17">其他</asp:ListItem>
                            </asp:DropDownList>
                            &nbsp;<span class="style15">水平：</span><asp:DropDownList ID="ddllanguageslevel" runat="server" CssClass="inputText3" Width="60">
                                <asp:ListItem Value="1">初级</asp:ListItem>
                                <asp:ListItem Value="2">熟练</asp:ListItem>
                                <asp:ListItem Value="3">精通</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="style2">
                            &nbsp;
                        </td>
                    </tr>
                    <tr                     >
                        <td style="text-align: right" class="auto-style1">
                            <span class="style9">* </span>&nbsp;岗位职责：</td>
                        <td  colspan="2" >
                            <br/>
                            <asp:TextBox ID="txtjobduty" runat="server" Height="200px" TextMode="MultiLine" 
                                Width="500px"></asp:TextBox>
                            &nbsp;
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                                ControlToValidate="txtjobduty" ErrorMessage="岗位职责不能为空！"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right" class="auto-style1">
                            <span class="style9">* </span>&nbsp;岗位要求：</td>
                       
                        <td  colspan="2">
                            <br/>
                            <asp:TextBox ID="txtjobrequirement" runat="server" Height="200px" TextMode="MultiLine"
                                Width="500px"></asp:TextBox>
                            &nbsp;
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                                ControlToValidate="txtjobrequirement" ErrorMessage="岗位要求不能为空！"></asp:RequiredFieldValidator>
                        </td>
                    </tr>

                </table>
                </div>
            </div>
            <!--one结束-->
        </div>
        <div class="button">
        <asp:Button ID="btn_postjob" runat="server" Text="发布职位" 
                                OnClick="btn_postjob_Click" CssClass="btn" Font-Bold="True" 
                                ForeColor="White" />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        
                            <asp:Button ID="btn_postagin" runat="server" Text="进入单位管理中心" 
                                CssClass="btn" Font-Bold="True" 
                                ForeColor="White" onclick="btn_postagin_Click" CausesValidation="False" 
                                BackColor="White" BorderColor="White" BorderStyle="None" />
        </div>
        <!--底部-->
        <uc2:Bottom1 ID="Bottom11" runat="server" />
        <!--底部-->
    </div>
     
    <div style="display: none" id="maskLayer">
        <iframe style="filter: alpha(opacity=50)" id="maskLayer_iframe" src="about:blank"
            frameborder="0" scrolling="no"></iframe>
        <div style="filter: alpha(opacity=50); -moz-opacity: 0.5; opacity: 0.5" id="alphadiv">
        </div>
        <div id="drag">
            <h3 id="drag_h">
            </h3>
            <div id="drag_con">
            </div>
            <!-- drag_con end -->
        </div>
    </div>
    <!-- maskLayer end -->
    <div>
        
    </div>
    
    </form>
     
    <!-- alpha div end -->
    <div style="display: none" id="sublist">
    </div>
    <div>
    <script type="text/javascript" src="../Scripts/nationality_func.js"></script>
    &nbsp;<input id="nation" type="hidden" name="nation"></div>
<div>
</div>
 <script language="javascript" type="text/javascript">

     $().ready(function () {
         showreward();
         //shownx();
     })
     function in_array(needle, haystack) {
         if (typeof needle == 'string' || typeof needle == 'number') {
             for (var i in haystack) {
                 if (haystack[i] == needle) {
                     return true;
                 }
             }
         }
         return false;
     }
     function setfristvalidity() {
         if ($("#<%=cbo_isfrist.ClientID %>").attr("checked")) {
             $("#<%=txtvalidity.ClientID %>").val("15");
             $("#<%=txtvalidity.ClientID %>").attr("readonly", true);
         }
         else {
             $("#<%=txtvalidity.ClientID %>").attr("readonly", false);
         }
     }
     function showreward() {
         if ($("#<%=cbo_isreward.ClientID %>").attr("checked")) {
             //$("#<%=txtrewardpay.ClientID %>").show();
             $(".txtrewardpay").show();
         }
         else {
             //$("#<%=txtrewardpay.ClientID %>").hide();
             $(".txtrewardpay").hide();
         }
     }


     function readonly() {
         if ($("#<%=cbo_bx.ClientID %>").attr("checked")) {
             $("#<%=txtmajor.ClientID %>").val("专业不限");
             $("#<%=txtmajor.ClientID %>").attr("disabled", true);
         }
         else {
             $("#<%=txtmajor.ClientID %>").val("");
             $("#<%=txtmajor.ClientID %>").attr("disabled", false);

         }
     }
    </script>
</body>
</html>
